package com.itheima.mapper;

import com.itheima.pojo.OrderSetting;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.Date;

@Mapper
public interface OrdersettingMapper1 {

    /**
     * 根据日期查询
     * @param orderDate
     * @return
     */
    @Select("select * from t_ordersetting where orderDate = #{orderDate}")
    OrderSetting findByDate(Date orderDate);


    /**
     * 跟新预约设置表
     * @param orderSetting
     */
    void updateReservation(OrderSetting orderSetting);
}
